package de.bk.timecalc.midlet;

import javax.microedition.midlet.MIDlet;

import de.bk.timecalc.midlet.statemachine.StateMachine;

public class TimeCalcMidlet extends MIDlet
{

  private StateMachine stateMachine;

  public TimeCalcMidlet()
  {
    super();
  }

  public void startApp()
  {
    this.stateMachine = new StateMachine(this);
    this.stateMachine.start();
  }

  public void pauseApp()
  {
  }

  public void destroyApp(boolean unconditional)
  {
    // this.preDestroy();
    this.stateMachine.destroy();
  }

  public void destroy()
  {
    this.stateMachine.destroy();
    this.notifyDestroyed();
  }

}